#!/usr/bin/env python

import os
import sys
from boto.ec2.connection import EC2Connection

def ec2stop(instancelist=None):
    conn = EC2Connection()
    conn.terminate_instances(instancelist)

if __name__ == '__main__':
    from optparse import OptionParser
    parser = OptionParser()
    
    options, args = parser.parse_args()
    sys.stderr.write("Stopping %s\n" %  str(args))
    ec2stop(args)

